﻿@{
    ViewData["Title"] = "Contact";
}
@using Microsoft.AspNetCore.Authentication

<dl>
    @foreach (var claim in User.Claims) {
        <dt>@claim.Type</dt>
        <dd>@claim.Value</dd>
    }
</dl>

<dt>access token</dt>
<dd>@await ViewContext.HttpContext.Authentication.GetTokenAsync("access_token")</dd>

<dt>refresh token</dt>
<dd>@await ViewContext.HttpContext.Authentication.GetTokenAsync("refresh_token")</dd>

<dt>Resource</dt>
<dd>@ViewBag.Resource</dd>

<form asp-action="Logout">
    <button class="btn">GoLogout</button>
</form>

<form asp-action="CallApiUsingUserAccessToken">
    <button class="btn">CallApiUsingUserAccessToken</button>
</form>
